package com.dody.agile.payment.transaction;


import com.dody.agile.payment.classification.PaymentClassification;
import com.dody.agile.payment.classification.SalariedClassification;
import com.dody.agile.payment.schedule.MonthlySchedule;
import com.dody.agile.payment.schedule.PaymentSchedule;

/**
 * @author ShiXin
 * @date 2019/4/9 19:49
 * @description ExamStack
 */
public class AddSalariedEmployee extends AddEmployeeTransaction {

    private double salary;

    public AddSalariedEmployee() {
    }

    public AddSalariedEmployee(Integer empId, String itsName, String itsAddress,double salary) {
        super(empId, itsAddress, itsName);
        this.salary = salary;
    }

    @Override
    PaymentClassification getClassification() {
        return new SalariedClassification(salary);
    }

    @Override
    PaymentSchedule getSchedule() {
        return new MonthlySchedule();
    }
}
